class Father {
    String name = "父类变量";

    void print() {
        System.out.println("父类的print方法");
    }
}

class Child extends Father {
    String name = "子类变量";

    @Override
    void print() {
        System.out.println("子类的print方法");
    }

    public void showVariables() {
        String name = "局部变量";
        System.out.println(/* TODO */);
        System.out.println(/* TODO */);
        System.out.println(/* TODO */);
    }

    public void showMethods() {
        /* TODO */
    }
}
public class Main {

    public static void main(String[] args) {
        Child child = new Child();
        child.showVariables();
        child.showMethods();
    }
}